<?php
/**
* 数据库表类 cf_driver
* ============================================================================
* * 版权所有 蜘蛛出行 * *
* 网站地址: http://www.dlltrip.com
* ----------------------------------------------------------------------------
* 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和
* 使用；不允许对程序代码以任何形式任何目的的再发布。
* ============================================================================
* Author By: 倪宗锋
* PhpStorm LoginController.php
* Create By 2021/06/02 15:16 $
*/

namespace common\models;

use yii\db\ActiveRecord;

/**
 * 数据库表类 cf_driver.
 * @property string $driver_id
 * @property string $driver_name
 * @property integer $driver_sex
 * @property string $driver_phone
 * @property string $update_time
 * @property string $create_time
 * @property integer $delete_flag
 */
class CfDriver extends ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'cf_driver';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['driver_sex', 'delete_flag'], 'integer'],
            [['update_time', 'create_time'], 'safe'],
            [['driver_name', 'driver_phone'], 'string', 'max' => 30],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'driver_id' => 'Driver ID',
            'driver_name' => 'Driver Name',
            'driver_sex' => 'Driver Sex',
            'driver_phone' => 'Driver Phone',
            'update_time' => 'Update Time',
            'create_time' => 'Create Time',
            'delete_flag' => 'Delete Flag',
        ];
    }
}
